package hcn.sync.annotation.action;

import hcn.sync.core.row.ResultMeta;

import java.io.Serializable;
import java.util.List;

/**
 * Created by chase on 2016/11/14.
 */

public class MessageData<T> implements Serializable {
    private Action action;
    private ResultMeta resultMeta;
    private List<T> content;

    public MessageData(Action action, List<T> content,ResultMeta resultMeta) {
        setAction(action);
        setContent(content);
        setResultMeta(resultMeta);
    }

    public Action getAction() {
        return action;
    }

    public void setAction(Action action) {
        this.action = action;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    public ResultMeta getResultMeta() {
        return resultMeta;
    }

    public void setResultMeta(ResultMeta resultMeta) {
        this.resultMeta = resultMeta;
    }
}